package com.zh.common.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description:
 * @ClassName TestUser
 * @date: 2021.02.03 10:36
 * @Author: zhanghang
 */
@Data
public class TestUser{
    @ExcelProperty(index = 3, value = "id")
    private Long id;

    @ExcelProperty(index = 0, value = "姓名")
    private String name;
    @ExcelProperty(index = 1, value = "年纪")
    private Integer age;
    @ExcelProperty(index = 2, value = "生日")
    private Date birthday;
    public TestUser(){}
    public TestUser(Long id, String name, Integer age, Date birthday){
        this.id = id;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }
}
